package com.xdb.sqlparser.ast.statement;

import com.xdb.sqlparser.ast.SQLName;
import com.xdb.sqlparser.ast.AbstractSQLObjectImpl;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class SQLAlterTableDropConstraint extends AbstractSQLObjectImpl implements SQLAlterTableItem {

	private SQLName constraintName;

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, this.constraintName);
		}
		visitor.endVisit(this);
	}

	public SQLName getConstraintName() {
		return constraintName;
	}

	public void setConstraintName(SQLName constraintName) {
		this.constraintName = constraintName;
	}

}
